package org.idea.iedis.framework.test;

import org.idea.iedis.framework.server.dict.Dict;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * @Author linhao
 * @Date created in 4:26 下午 2021/4/30
 */
public class DictTestCase {

    private Dict dict;

    @Before
    public void setUp() {
        dict = new Dict();
    }

    @After
    public void setDown() {
//        dict.display();
    }

    @Test
    public void testInput() {
        dict.addSds("k1", "k1");
        dict.addSds("k2", "k2");
        dict.addSds("k3", "k3");
    }

    @Test
    public void testRehash() {
        for (int i = 0; i < 1000; i++) {
            dict.addSds("k" + i, i + "");
        }
    }
}
